package courses

import (
	"fmt"
	"time"
)

// Materail0801 : goto
func Materail0801() {
dst:
	for i := 0; i <= 10; i++ {
		if i == 3 {
			goto dst
		}
		fmt.Println(i)
		time.Sleep(time.Second * 1)
	}
}

// Materail0802 : goto
func Materail0802() {
	i := 0
dst:
	for i < 10 {
		if i == 3 {
			i++
			goto dst
		}
		fmt.Println(i)
		time.Sleep(time.Second * 1)
		i++
	}
}
